package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperAppUpdate implements Serializable {
    private String androidVersionNum;

    private String androidUpUrl;

    private String androidIsForceUpdate;

    private String androidUpDesc;

    private static final long serialVersionUID = 1L;

    public String getAndroidVersionNum() {
        return androidVersionNum;
    }

    public void setAndroidVersionNum(String androidVersionNum) {
        this.androidVersionNum = androidVersionNum;
    }

    public String getAndroidUpUrl() {
        return androidUpUrl;
    }

    public void setAndroidUpUrl(String androidUpUrl) {
        this.androidUpUrl = androidUpUrl;
    }

    public String getAndroidIsForceUpdate() {
        return androidIsForceUpdate;
    }

    public void setAndroidIsForceUpdate(String androidIsForceUpdate) {
        this.androidIsForceUpdate = androidIsForceUpdate;
    }

    public String getAndroidUpDesc() {
        return androidUpDesc;
    }

    public void setAndroidUpDesc(String androidUpDesc) {
        this.androidUpDesc = androidUpDesc;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", androidVersionNum=").append(androidVersionNum);
        sb.append(", androidUpUrl=").append(androidUpUrl);
        sb.append(", androidIsForceUpdate=").append(androidIsForceUpdate);
        sb.append(", androidUpDesc=").append(androidUpDesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperAppUpdate other = (SuperAppUpdate) that;
        return (this.getAndroidVersionNum() == null ? other.getAndroidVersionNum() == null : this.getAndroidVersionNum().equals(other.getAndroidVersionNum()))
            && (this.getAndroidUpUrl() == null ? other.getAndroidUpUrl() == null : this.getAndroidUpUrl().equals(other.getAndroidUpUrl()))
            && (this.getAndroidIsForceUpdate() == null ? other.getAndroidIsForceUpdate() == null : this.getAndroidIsForceUpdate().equals(other.getAndroidIsForceUpdate()))
            && (this.getAndroidUpDesc() == null ? other.getAndroidUpDesc() == null : this.getAndroidUpDesc().equals(other.getAndroidUpDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAndroidVersionNum() == null) ? 0 : getAndroidVersionNum().hashCode());
        result = prime * result + ((getAndroidUpUrl() == null) ? 0 : getAndroidUpUrl().hashCode());
        result = prime * result + ((getAndroidIsForceUpdate() == null) ? 0 : getAndroidIsForceUpdate().hashCode());
        result = prime * result + ((getAndroidUpDesc() == null) ? 0 : getAndroidUpDesc().hashCode());
        return result;
    }
}